package rmi.chatframe;

import java.awt.BorderLayout;
import java.awt.TextArea;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
//import javax.swing.JPanel;
//import javax.swing.JTextArea;

public class ChatFrame extends JFrame {
	
	private static final long serialVersionUID = 1L;
	//JPanel seePan;
	public TextArea seeText;
	public ChatFrame(String myName)
	{
		setSize(400, 250);
		setTitle("i-" + myName);
                setIconImage(Toolkit.getDefaultToolkit().getImage("ilogo.gif"));
		JPanel seePan = new JPanel();
		JLabel titleBar = new JLabel("This is View Window");
		seePan.add(titleBar);
		add(seePan, BorderLayout.SOUTH);
		seeText = new TextArea(10, 50);

		//seeText.setWrapStyleWord(true);
		//seeText.setAutoscrolls(true);
		
		add(seeText);
		add(new JScrollPane(seeText));
		seeText.setEditable(false);
		//pack();
		//seePan.add(seeText);
	}
}
